package com.qyl.sever_rpc.client;

public class Math implements MathInterface{

    private static Client client;
    static {
        CGlibProxy<Client> proxy = new CGlibProxy<>(new Client());
        client = proxy.createProxyObject();
    }

    @Override
    public Integer add(Integer arg1, Integer arg2) {
        return client.add(arg1, arg2);
    }

    @Override
    public Integer sub(Integer arg1, Integer arg2) {
        return client.sub(arg1, arg2);
    }
}
